<!--lichen 2019/5/9 start store-->



<div class="module_common">
    <h2 class="common_title veins1">
        <div class="ornament1"></div>
        <div class="ornament2"></div>
        <span class="ico1"><span class="ico2">{$lang.gcategory}</span></span>
    </h2>
    <div class="wrap_child">
        <ul class="submenu">
            <li><span class="none_ico"></span><a href="{url app=store&id=$store.store_id&act=search}">{$lang.all_goods}</a></li>
            <!--{foreach from=$store.store_gcates item=gcategory}-->
            <!--{if $gcategory.children}-->
            <li>
                <span class="block_ico"></span><a  href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id}">{$gcategory.value|escape}</a>
                <ul>
                    <!--{foreach from=$gcategory.children item=child_gcategory}-->
                    <li><a href="{url app=store&id=$store.store_id&act=search&cate_id=$child_gcategory.id}">{$child_gcategory.value|escape}</a></li>
                    <!--{/foreach}-->
                </ul>
            </li>
            <!--{else}-->
            <li><span class="none_ico"></span><a href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id}">{$gcategory.value|escape}</a></li>
            <!--{/if}-->
            <!--{/foreach}-->
        </ul>
  </div>
    <script>
        $(function(){
            $('.wrap_child .submenu li ul').hide();
            $('.wrap_child .submenu span').click(function(){
                if($(this).hasClass('block_ico'))
                {
                    $(this).removeClass('block_ico').addClass('none_ico');
                }else
                {
                    $(this).removeClass('none_ico').addClass('block_ico');
                }
                $(this).siblings().filter('ul').toggle();

            });
        })
    </script>
</div>

<!-- {if $smarty.get.app eq "store" and $smarty.get.act eq "index"} -->
<div class="module_common">
    <h2 class="common_title veins1">
        <div class="ornament1"></div>
        <div class="ornament2"></div>
        <span class="ico1"><span class="ico2">{$lang.partner}</span></span>
    </h2>
    <div class="wrap_child">
        <ul class="submenu">
            <!--{foreach from=$partners item=partner}-->
            <li><a class="link_ico" href="{$partner.link}" target="_blank">{$partner.title|escape}</a></li>
            <!--{/foreach}-->
        </ul>
    </div>
</div>
<!-- {/if} -->

<!--{if $smarty.get.app eq "goods"}-->
<div class="module_common">
    <h2 class="common_title veins1">
        <div class="ornament1"></div>
        <div class="ornament2"></div>
        <span class="ico1"><span class="ico2">{$lang.goods_history}</span></span>
    </h2>
    <div class="wrap_child">
        <ul class="annals">
            <!--{foreach from=$goods_history item=gh_goods}-->
            <li><a href="{url app=goods&id=$gh_goods.goods_id}"><img src="{$gh_goods.default_image}" width="50" height="50" alt="{$gh_goods.goods_name|truncate:20|escape}" title="{$gh_goods.goods_name|escape}" /></a></li>
            <!--{/foreach}-->
        </ul>
    </div>
</div>
<!--{/if}-->